package com.xiaoshuidi.cloud.module.finance.enums.finance;

/**
 * 支付来源
 */
public enum PaymentSourceEnum {
    ONLINE("线上"), OFFLINE("线下");

    PaymentSourceEnum(String desc) {
        this.desc = desc;
    }

    private final String desc;

    public String getDesc() {
        return desc;
    }

    public static String getDesc(String name) {
        for (PaymentSourceEnum value : values()) {
            if (value.name().equals(name)) {
                return value.getDesc();
            }
        }
        return "";
    }
}
